package com.responsibilitychain;

// 请求类
public class PurchaseRequest {

    private int type = 0; // 请求类型
    private float prize = 0.0f; // 请求的金额
    private int id = 0;

    // 构造器

    public PurchaseRequest(int type, float prize, int id) {
        this.type = type;
        this.prize = prize;
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public float getPrize() {
        return prize;
    }

    public int getId() {
        return id;
    }
}
